package net.yambal.RTM.Event
{
	import flash.events.Event;
	
	import net.yambal.RTM.Items.RTMGroup;
	import net.yambal.RTM.Items.RTMTransaction;

	public class GroupsEvent extends Event
	{
		
		public static const GET_LIST:String = "get_list";
		public static const ADD:String = "add";
		public static const DELETE_GROUP:String = "delete_group";
		public static const ADD_CONTACT:String = "add_contact";
		public static const REMOVE_CONTACT:String = "remove_contact";
		
		public var groups:Array;
		public var group:RTMGroup;
		public var transaction:RTMTransaction;
		
		public function GroupsEvent(type:String, groups:Array = null, group:RTMGroup = null, transaction:RTMTransaction = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.groups = groups;
			this.group = group;
			this.transaction = transaction;
		}
		
	}
}